﻿using System;
using System.Linq;
using System.Collections.Generic;
using System.Text;
using System.Runtime.InteropServices;

namespace VmcRemote.Common.Power
{
    internal class MessageQueueOptions
    {
        public const int DefaultMaximumNumberOfMessages = 20;
        public const int DefaultMaximumMessageSize = 100;
        public const int DefaultFlags = 0;
        public const int DefaultReadAccess = 0;

        public int dwSize;
        public int dwFlags;
        public int dwMaxMessages;
        public int cbMaxMessage;
        public int bReadAccess;

        public MessageQueueOptions()
        {
            dwSize = Marshal.SizeOf(typeof(MessageQueueOptions));
            dwFlags = DefaultFlags;
            dwMaxMessages = DefaultMaximumNumberOfMessages;
            cbMaxMessage = DefaultMaximumMessageSize;
            bReadAccess = DefaultReadAccess;
        }
    }

}
